package com.cloudxingkong.dianyinke.Student.Ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.cloudxingkong.dianyinke.R;
import com.nostra13.universalimageloader.core.ImageLoader;


public class NewsInformationDetail extends BaseActivity {
	private TextView news_tv_biaoti, news_tv_time, news_tv_performers, news_tv_star;
	private ImageView news_image_pic1, news_image_pic2;
	String content;
	String data;
	String title;
	String pic;
	String pic2;

	@Override
	protected void onCreateView (Bundle savedInstanceState) {
		setContentView (R.layout.activity_news_information_detail);
		init ();
		loadData ();


	}

	private void loadData () {
		news_tv_biaoti.setText (title);
		news_tv_time.setText (data);
		news_tv_performers.setText (content);
	}

	private void init () {
		news_image_pic1 = (ImageView) findViewById (R.id.news_image_pic1);
		news_image_pic2 = (ImageView) findViewById (R.id.news_image_pic2);
		news_tv_biaoti = (TextView) findViewById (R.id.news_tv_biaoti);
		news_tv_time = (TextView) findViewById (R.id.news_tv_time);
		news_tv_performers = (TextView) findViewById (R.id.news_tv_performers);
		news_tv_star = (TextView) findViewById (R.id.news_tv_star);
		Intent intent = getIntent ();
		content = intent.getStringExtra ("content");
		data = intent.getStringExtra ("time");
		title = intent.getStringExtra ("title");
		pic = intent.getStringExtra ("pic");
		pic2 = intent.getStringExtra ("pic2");


		ImageLoader.getInstance ().displayImage (pic, news_image_pic1);
		ImageLoader.getInstance ().displayImage (pic2, news_image_pic2);

	}

	public void back (View view) {
		finish ();
	}
}
